package com.itrip.config;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000116666103";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCP/jhMctReXTNJvrxDnDRCpls0aWpgefw7dyABi3+BXWsVO3PMpFPdRV+n0j7I69KtnQzhKVStoveCw6Wb8rIclFLiDzlpYFQAw7tc9FW+TyEhiCqyiM/vxt7Kq7YImVz5KSgUe1USx3Ym9LtU6/TOqRU1UyUpU2+qwT/ZQ9omcmIcouSDv5mZNxwTlHRB2/QEMd0L0i8HV5nQ3x9CByiACySLTaivklfSwxP5n4BW3HHy7f6Pjb4OGzwr7ZCs14c5ScvWIfLrzeP/R8YaCQOg4iEb0X6iEkPXcow3w791ahhYpHBrfjPxYhrJr8LNHzkQudAq9bLYsTvMyLgCf88VAgMBAAECggEAHWtleUkk1rrYFcMgl/e8PbnbfJPlJh0GSegG5AnqXTYHAOmKuU8By323E4TDSy3Td6FU1lQpduiLBW6P0ZL+jRRI8uMFaeBCiX10NIO/WQi1zjIR9zQ4t9a8AlCe+pbLBiVAiR7BvPp/y2nJNIqZE/g72w9H0m+3qv2c2/kfAyeg3c/D3tD7AOhUZ8apXdbOtsNHRWj9bE+uGWbZl/B8wm50dNZMZPoOapjtX6HBuHv/Uo5pbt+olyYxm0nZ9orh04g+jTpzR3TCMUxFXppw7fKd9zID++uWosllGqs+60E/XB8FDdzKjsMsPHUn4WqGf5sb0RRmNx1DjwMdh/qT6QKBgQDRpjcs/7NaCkimeKNGGPaAltu0/RLY3B/VX/6qOIc7xG+rrbpwPpsygKL311ayuQ/xg/N7w4MYib44ds3YOwB+1xG7LwcV2cxMUWHUEeor2leh6qZGOR5+bebI12OCS9JrU15kXJMWEVSEZYFKc57xAygNP+xAH56RTpnhMgxW+wKBgQCv0/nQPo3WrM7GDg4HHBVaFXeJgwXK2EJ3S5O71n1F4pYaFpxpg4pLlYMvDQCzHPtsO8icd9JfB6foQ00faSTWyB7dbLJ3K1GXkEFbx6fbUv74SzV70uqfKumP1MOgQ7ScIbcN/dRH6CBXzbqHD2Oa33Zk9woSy1xConUb9wfVLwKBgQC5QrF1UUvzIC1M9kQJ+JszzJvAFvblrbdvvdF0KFnQhejMg8vBzoEkoqnga2kQrBqbqKer0XxyXZ47lTiXgKQScgkYKRmQxJMVScEyPtZ5BAv2aD2gxm7c+E89YaBsjoYWE2jRNUFA+fV+vZf/66Yjgk+NTdR+YbKk4xl1990RqwKBgDpaSVAZUo1qcH0+cN1fLp7k/PUALM3zE6vvwynVt2GYH2StGF/ULfODvTPCRvcqqS50cNGs2n57Vfg5TcEc7gLyC3xE9L2j/MImN+qzyjt5wfC5VRixGPiWD0mSvRHVJn2imtPj562tlf5N4pesPcxKWUqMyiUOpKHgtKkBRPI1AoGABJKBjTiCgxREzuaAYn6SAPiJ96pBABvi8l85/Nrex02T9a/FjyKCSiWdFa3HM427YMMe+nONleu/3RfhtLdmqyIEG1kwvlmZZGw+LBfirJTwoafS4h0qpgsqwWxx81wIj9oqvc22wIHBtA9Kec88xpq63u1Odd0EoMeSrDPjB0U=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm10tOe7LgRPLR5grNxNdL4p2/V084MYEfQwHVUEth0dOqg6wwQLQJwpPk7EhOwWY0qZgJ7w0E4NVnIUeIZ1oIHSASIthUHK2yUZiKfoSeD+DAjxAmvnaXuBJ+3CCiAv1UK5vJonr3Bir5HsMnc4GZLA9IynWph4XgIxKkzGpT9ckzK+rrgmeAjHw0+NYWQbkR2UhcMfS0zIWhy+cLHSVY32Qq0RoQJe+WKWBq4abhIFb4zvvSIgcs1CE+Mw25lnUK+4tqVGV6qydLKFPxVgJlWt0SIkCQslRJZppeXqgDXR+ghZ6zhwNgg3qwVyPNIFDG2kHxkyklUDBy//kAgftlwIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "https://www.baidu.com/";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "https://www.baidu.com/";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";


}
